<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看系统日志</title>
<link rel="Stylesheet" href="../css/main.css" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/Util.js"></script>
<script type="text/javascript" src="../home/js/navbar.js"></script>
<script type="text/javascript" src="../home/js/viewlog.js"></script>
</head>
<body>
<div class="pagecontent">
	<div class="pagehead">
		{#include_php file='../home/head.php' once=true#}
	</div>
	<div class="pagebody">
		<div class="bodyleft">
			{#include_php file='../home/navbar.php' once=true#}
		</div>		
		<div class="bodyright">
			<h2>查看系统日志</h2>
			<div class="sepline"></div>
			<div>
				<div style="text-align:right; margin-right:25px;"><a id="filterlink" class="filterlink1" href="#">筛选选项</a></div>
				<div id="filterfield">
					<form method="post">
						用户：<select id="users" style="width:100px;">
							<option value="0">所有用户</option>
							<!--{foreach from=$users item=u}-->
							<option value="{#$u.uid#}">{#$u.uname#}</option>
							<!--{/foreach}-->
						</select>&nbsp;&nbsp;&nbsp;&nbsp;
						<select style="width:60px;" id="s_year"></select>年<select style="width:40px;" id="s_mon"></select>月<select style="width:40px;" id="s_day"></select>日
						到
						<select style="width:60px;" id="e_year"></select>年<select style="width:40px;" id="e_mon"></select>月<select style="width:40px;" id="e_day"></select>日
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="submit" class="bgbut" value="提交" />
					</form>
				</div>
				<ul class="logs">					
					<li>
						<div class="log_left"><span class="headtxt">用户名</span></div>
						<div class="log_left"><span class="headtxt">操作时间</span></div>
						<div class="log_right"><span class="headtxt">操作内容</span></div>
						<div style="clear:both;"></div>
					</li>
					<li class="sepline2"></li>
					<!--{foreach name=loglist from=$logs item=log}-->
					<li>
						<div class="log_left">{#$log.uname#}</div>
						<div class="log_left">{#$log.logtime#}</div>
						<div class="log_right">{#$log.contents#}</div>
						<div style="clear:both;"></div>
					</li>
					<!--{if !$smarty.foreach.loglist.last}-->
					<li class="sepline2"></li>
					<!--{/if}-->
					<!--{/foreach}-->
					<li style="text-align:right;">
						当前第<em>{#$pageinfo.page#}</em>页，共<em>{#$pageinfo.pageCount#}</em>页&nbsp;
						<!--{if $pageinfo.pageCount > 1 and !$pageinfo.isFirst}-->
						<a id="lastpage" title="{#$pageinfo.page-1#}" href="?page={#$pageinfo.page-1#}">上一页</a>
						<!--{else}-->
						<a>上一页</a>
						<!--{/if}-->
						|
						<!--{if $pageinfo.pageCount > 1 and !$pageinfo.isLast}-->
						<a id="nextpage" title="{#$pageinfo.page+1#}" href="?page={#$pageinfo.page+1#}">下一页</a>
						<!--{else}-->
						<a>下一页</a>
						<!--{/if}-->
						<!--{if $pageinfo.pageCount > 1}-->
						跳到第<select class="log_page" id="pages" name="pages">
								<!--{foreach from=$pages item=p}-->
								<!--{if $p == $pageinfo.page}-->
								<option selected value="{#$p#}">{#$p#}</option>
								<!--{else}-->
								<option value="{#$p#}">{#$p#}</option>
								<!--{/if}-->
								<!--{/foreach}-->
							  </select>页
						<!--{/if}-->
					</li>
				</ul>
			</div>
		</div>		
	</div>	
	<div class="pagetail">
	{#include_php file='../home/footer.php' once=true#}
	</div>
</div>
</body>
</html>